-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Change Electric Kiwi authentication #135231
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
But I am missing, why do we do this? What was the unique id before and what will it be now? |
Unique id was "electric_kiwi" and now it will be their customer number. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Electricity object is not being patched
So migrating users is doing my head in.... the api changes are messy as the token is ring fenced to the old scopes if users are authenticated. The identifier is not the same as well I'll need to make an extra API call to get the same id I used in the past/ migrate entities as well. I need to get users to re-authenticate before migrating. EDIT: resolved now. Got it sorted, added new tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't seem to find the source of the library
Hey @mikey0000 👋🏻 Your library pins python https://github.com/home-assistant/core/actions/runs/13171579271/job/36762816394#step:9:766 |
Migrate from a unique id of DOMAIN to customer number
Breaking change
Proposed change
Fix unique id and migrate, fix small issue where title would be Home Assistant Cloud, now is the customer id
Library bump was also required due to API migration
mikey0000/EK-API@0.8.5...0.9.12
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: